Ext.define('cfWeb.store.appManage.SysAppTemplateStore', {
	extend: 'Ext.data.Store',
	alias: 'widget.sysAppTemplateStore',
	autoLoad: true,
	fields: [{
		name: 'itemId',
		mapping: 'id',
		type: 'int'
	}, {
		name: 'itemName',
		mapping: 'temName',
		type: 'String'
	}, {
		name: 'itemIco',
		mapping: 'temImg',
		type: 'String'
	}, {
		name: 'type',
		type: 'int'
	}],
	/*data: [{
		"id": 32,
		"temName": "4321",
		"envId": 1,
		"org": "org1",
		"space": "space11",
		"domain": "yjs.cf",
		"memory": 512,
		"disk": 1024,
		"instance": 1,
		"temImg": "resources/img/icons/module.png",
		"temColor": "#0f0",
		"type": 0
	}, {
		"id": 35,
		"temName": "12345",
		"envId": 9,
		"org": "org1",
		"space": "space11",
		"domain": "yjs.cf",
		"memory": 1024,
		"disk": 1024,
		"instance": 1,
		"temImg": "resources/img/icons/module.png",
		"temColor": "#0f0",
		"type": 0
	}, {
		"id": 36,
		"temName": "87878",
		"envId": 9,
		"org": "org1",
		"space": "space11",
		"domain": "yjs.cf",
		"memory": 512,
		"disk": 1024,
		"instance": 1,
		"temImg": "resources/img/icons/module.png",
		"temColor": "#0f0",
		"type": 0
	}, {
		"id": 38,
		"temName": "ranran",
		"envId": 1,
		"org": "org1",
		"space": "space11",
		"domain": "yjs.cf",
		"memory": 512,
		"disk": 1024,
		"instance": 1,
		"temImg": "resources/img/icons/module.png",
		"temColor": "#0f0",
		"type": 0
	}]*/
	proxy: {
		type: 'rest',
		url: 'rest/template/listTemplateOfAdmin', //这个url应该返回系统模板信息
		reader: {
			type: 'json',
			root: 'data',
			successProperty: 'success'
		}
	}
});